package pojo;

import java.util.Date;

public class Order {
	private int id;
	private Date createDate;
	private Date dealDate;

	public Order() {

	}

	public Order(int id, Date createDate, Date dealDate) {
		this.id = id;
		this.createDate = createDate;
		this.dealDate = dealDate;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getDealDate() {
		return dealDate;
	}

	public void setDealDate(Date dealDate) {
		this.dealDate = dealDate;
	}

	@Override
	public int hashCode() {
		return id;
	}

	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof Order)){
			return false;
		}
		Order o = (Order)obj;
		return this.id == o.getId();
	}

}
